﻿#ifndef __INCLUDE_SCRIPT_H__
#define __INCLUDE_SCRIPT_H__


unsigned WINAPI MainThread(PVOID pParam);
void ScriptDelay(long index, long time);
void dmClick(OcrInfo ocrInfo);
void dmDoubleClick(OcrInfo ocrInfo);
bool runScript(long index,CString str);
bool FindCol(OcrInfo ocrInfo);
bool FindMulCol(OcrInfo ocrInfo);
bool CmpCol(OcrInfo ocrInfo);
bool FindPic(OcrInfo ocrInfo);
bool FindStr(OcrInfo ocrInfo);
bool FindColBlock(OcrInfo ocrInfo);
bool runScriptList(long index, CString str);
void moveKey(long index,int key, int keyDelay);
void DoWork(long index, int taskIndex,bool bLoginState);
void DoWorkZhaKun(long index, int taskIndex, bool bLoginState);
bool StartTaskZhaKun(long index, int taskIndex);
bool StartLoginGameZhaKun(long index, int taskIndex, bool flagLogin);
void CloseWindows();
bool bossAttack(int index, int taskIndex);
void Attack(long index, int mode);
void MoveAttack(long index, int mode);
void JumpAttack(long index, int key, int mode);
//退出扎昆
void ExitZkjt(int index);
void ExitZkrk(int index);
bool FindComputer(int index, int taskIndex);
//关闭组队
void CloseTearm(int index);
void ChoseBoss(int index,CString strBoss,int offX,int offY);
void RunScriptList(int index,CString strList);
void DoWorkWlsYou(long index, int taskIndex, bool bLoginState);
#endif